package com.etoak.service;

import org.springframework.stereotype.Service;

@Service
public interface LikeService {
    /**
     * 点赞或取消
     * @param key
     * @param username
     * @return  true 点赞 false取消
     */
    boolean like(String key,String username);

    /**
     * 获取点赞的数量
     */
    Long getNumber(String key);
}
